#!/bin/bash
# 替换ExportTask的format字段并添加errorMessage

sed -i 's/  format: ExportFormat/  exportFormat: ExportFormat/' types.ts
sed -i '/  archiveStatus: ArchiveStatus/a\  errorMessage?: string \/\/ 失败时的错误信息' types.ts

echo "ExportTask type updated"
